package com.xinzhidi.web.custommodel.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;


/**
 * 自定义模型UpdDto对象 custom_model
 *
 * @author cx
 * @date 2023-06-15
 */
@ApiModel(value = "自定义模型UpdDto对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class CustomModelUpdDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id主键")
    @NotNull(message = "id主键不能为空")
    @Min(value = 0, message = "id主键不能比0小")
    private Long id;

    @ApiModelProperty(value = "父id")
    private Long parentId;

    @ApiModelProperty(value = "模型名称")
    @NotBlank(message = "模型名称不能为空")
    @Size(max = 100, message = "模型名称长度不能大于100")
    private String modelName;

    @ApiModelProperty(value = "模型级别(1：一级模型  2：二级模型)")
    @NotBlank(message = "模型級別不能为空")
    @Size(max = 100, message = "模型級別长度不能大于100")
    private String modelLevel;

    @ApiModelProperty(value = "户型")
    @Size(max = 100, message = "户型长度不能大于100")
    private String houseType;

    @ApiModelProperty(value = "散热器类型")
    @Size(max = 100, message = "散热器类型长度不能大于100")
    private String radiatorType;

    @ApiModelProperty(value = "住户面积范围开始")
    private BigDecimal residentAreaStart;

    @ApiModelProperty(value = "住户面积范围结束")
    private BigDecimal residentAreaEnd;

    @ApiModelProperty(value = "状态（0：启用 1：禁用）")
    @NotBlank(message = "状态（0：启用 1：禁用）不能为空")
    @Size(max = 100, message = "状态（0：启用 1：禁用）长度不能大于100")
    private String status;

    @ApiModelProperty(value = "算法名称")
    @NotBlank(message = "算法名称不能为空")
    @Size(max = 100, message = "算法名称长度不能大于100")
    private String arithmeticName;

    @ApiModelProperty(value = "使用数量")
    private Long useQuantity;

    @ApiModelProperty(value = "模型类型")
    @NotNull(message = "模型类型不能为空")
    private String modelType;

}
